




function shop_add_panel(unit,point)
    unit:set_data('血条贴图',[[core\hpbar\ShieldBar.tga]])
    unit_add_life2(unit,nil,100,10)
end

function shop_add_name(unit,title)
    local panel = class.panel.create('',1,1,200,50)
    panel.text = panel:add_text(title or unit.ui_title or unit.title or unit.name,-100,1,panel.w + 200,nil,12,2)
    panel:hide()
    panel:bind_world(unit)
    panel.world_anchor = "top"
    japi.SetUnitPressUIVisible(unit.handle,false)
    return panel
end
